import http from '@/plugins/axios'

/**
 * 获取客户列表
 * @param data 
 * @returns 
 */
export function getCustomerList(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customer/getCustomerList',
    data
  })
}

/**
 * 
 * @param data 新增店铺业务数据
 * @returns 
 */
export function addCustomerShopBusiness(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customerShopBusiness/addCustomerShopBusiness',
    data
  })
}

/**
 * 
 * @param data 根据咨询记录ID查询咨询记录信息
 * @returns 
 */
export function getConsultationInfoById(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/consultation/records/getConsultationInfoById',
    data
  })
}

/**
 * 
 * @param data 根据客户ID以及店铺ID取业务名称
 * @returns 
 */
export function getYwmcByCustomerIdAndCustomerShopId(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customerShopBusiness/getYwmcByCustomerIdAndCustomerShopId',
    data
  })
}

/**
 * 
 * @param dictNo 获取字典数据
 * @returns 
 */
export function getDictInfo(dictNo) {
  return http({
    method: 'POST',
    url: '/ykf/dictDetail/listByNo',
    data: { dictNo: dictNo }
  })
}

/**
 * 
 * @param data 获取子账号数据
 * @returns 
 */
export function getZzhListByYwId(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/subAccount/getZzhListByYwId',
    data
  })
}

/**
 * 
 * @param dictNo 操作子账号对象
 * @returns 
 */
export function operateZzhObj(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/subAccount/operateZzhObj',
    data
  })
}

/**
 * 
 * @param dictNo 获取首次收款数据
 * @returns 
 */
export function getScskList(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/renewManageTwo/getScskList',
    data
  })
}

/**
 * 
 * @param dictNo 首次收款提交
 * @returns 
 */
export function postScsk(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/renewManageTwo/postScsk',
    data
  })
}

/**
 * 
 * @param dictNo 获取这个收费模式(分组)除了当前主业务之外的其它业务
 * @returns 
 */
export function getSfmsYwListByCustomerShopBusinessId(data) {
  return http({
    method: 'POST',
    url: '/new/ykf/customerShopBusiness/getSfmsYwListByCustomerShopBusinessId',
    data
  })
}